<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form class="layui-form" lay-filter="userForm" id="add_user_form" action="" style="padding:15px 10px;">
    <input type="hidden" name="id">
<div class="layui-row">
    <div class="layui-col-xs6">
        <div class="layui-form-item">
            <label class="layui-form-label">医生</label>
            <div class="layui-input-block">
                <input type="text" name="docname" required  lay-verify="required" placeholder="患者" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-col-xs6">
        <div class="layui-form-item">
            <label class="layui-form-label">病单号</label>
            <div class="layui-input-block">
                <input type="text" id="ss" name="disoddid"  lay-verify="required"p laceholder="" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
</div>

<div class="layui-row">
    <div class="layui-col-xs6">
        <div class="layui-form-item">
            <label class="layui-form-label">患者</label>
            <div class="layui-input-block">
                <input type="text" name="rname" required  lay-verify="required" placeholder="患者" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
    <!--<div class="layui-col-xs6">-->
        <!--<div class="layui-form-item">-->
            <!--<label class="layui-form-label">仪器</label>-->
            <!--<div class="layui-input-block">-->
                <!--<input type="text" id="ads" name="aid"  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->
<!--</div>-->
    <div class="layui-form-item">
        <label class="layui-form-label">仪器</label>
        <div class="layui-input-block">
            <select name="aid" id="de_add">
                <option value="">请选择</option>

            </select>
        </div>
    </div>


<div class="layui-row">
    <div class="layui-col-xs6">
        <div class="layui-form-item">
            <label class="layui-form-label">使用时间</label>
            <div class="layui-input-block">
                <input type="date" name="zdate" required  lay-verify="required" placeholder="患者" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-col-xs6">
        <div class="layui-form-item">
            <label class="layui-form-label">结束时间</label>
            <div class="layui-input-block">
                <input type="date" id="dis" name="zdateover"  lay-verify="required"p laceholder="" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
</div>
</div>
    <script>
        layui.form.render();
        $.get("http://localhost:8888/app/search",function(data){
            $.each(data,function(){
                var opt = $("<option></option>").appendTo("#de_add");
                opt.text(this.instName).val(this.id);
            });
            layui.form.render();
        });
    </script>
</form>

</body>
</html>